package com.share.device.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.share.common.core.annotation.Excel;
import com.share.common.core.web.domain.BaseEntity;

/**
 * 柜机插槽对象
 * 
 * @author
 * @date 2025-06-25
 */
@Schema(description = "柜机插槽对象")
@Data
public class CabinetSlot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    @Schema(description = "ID")
    private Long id;

    /** 柜机id */
    @Excel(name = "柜机id")
    @Schema(description = "柜机id")
    private Long cabinetId;

    /** 插槽编号 */
    @Excel(name = "插槽编号")
    @Schema(description = "插槽编号")
    private String slotNo;

    /** 充电宝id */
    @Excel(name = "充电宝id")
    @Schema(description = "充电宝id")
    private Long powerBankId;

    /** 状态（1：占用 0：空闲 2：锁定） */
    @Excel(name = "状态", readConverterExp = "1=：占用,0=：空闲,2=：锁定")
    @Schema(description = "状态（1：占用 0：空闲 2：锁定）")
    private String status;

    @Schema(description = "充电宝")
    @TableField(exist = false)
    private PowerBank powerBank;
    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCabinetId(Long cabinetId) 
    {
        this.cabinetId = cabinetId;
    }

    public Long getCabinetId() 
    {
        return cabinetId;
    }

    public void setSlotNo(String slotNo) 
    {
        this.slotNo = slotNo;
    }

    public String getSlotNo() 
    {
        return slotNo;
    }

    public void setPowerBankId(Long powerBankId) 
    {
        this.powerBankId = powerBankId;
    }

    public Long getPowerBankId() 
    {
        return powerBankId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cabinetId", getCabinetId())
            .append("slotNo", getSlotNo())
            .append("powerBankId", getPowerBankId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
